/*
 * frmSQLMaker.java
 *
 * Created on 1. März 2008, 16:06
 */

package com.googlecode.oskis.admin;

/**
 * Generiert aus Datenbankbeschreibungstabellen ein SQL Script
 * zum Anlegen der leeren Datenbank. 
 * Das SQL Script wird in einem auswählbaren SQL Dialekt generiert,
 * um meherere Datenbank Management Systeme bedienen zu können.
 * @author  thomas
 */
public class frmSQLMaker extends javax.swing.JFrame {
    
    /** Creates new form frmSQLMaker */
    public frmSQLMaker() {
        initComponents();
    }
    
    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        bgrDBType = new javax.swing.ButtonGroup();
        lblEingang = new javax.swing.JLabel();
        txtEingang = new javax.swing.JTextField();
        btnEingangAuswahl = new javax.swing.JButton();
        lblAusgang = new javax.swing.JLabel();
        txtAusgang = new javax.swing.JTextField();
        btnAusgangAuswahl = new javax.swing.JButton();
        btnStart = new javax.swing.JButton();
        btnEnde = new javax.swing.JButton();
        rbuPostgres = new javax.swing.JRadioButton();
        rbuOracle = new javax.swing.JRadioButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setTitle("SQL Script generieren");

        lblEingang.setText("Eingangsverzeichnis");

        btnEingangAuswahl.setText("Auswählen");

        lblAusgang.setText("Ausgangsdatei");

        btnAusgangAuswahl.setText("Auswählen");

        btnStart.setText("start");

        btnEnde.setText("beenden");
        btnEnde.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnEndeActionPerformed(evt);
            }
        });

        bgrDBType.add(rbuPostgres);
        rbuPostgres.setSelected(true);
        rbuPostgres.setText("PostgreSQL");

        bgrDBType.add(rbuOracle);
        rbuOracle.setText("Oracle");

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lblEingang)
                    .addComponent(lblAusgang)
                    .addComponent(btnStart))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(txtAusgang, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 602, Short.MAX_VALUE)
                            .addComponent(txtEingang, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 602, Short.MAX_VALUE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(btnEingangAuswahl, javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(btnAusgangAuswahl, javax.swing.GroupLayout.Alignment.TRAILING)))
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(rbuPostgres)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(rbuOracle)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 473, Short.MAX_VALUE)
                        .addComponent(btnEnde)))
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblEingang)
                    .addComponent(btnEingangAuswahl)
                    .addComponent(txtEingang, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblAusgang)
                    .addComponent(btnAusgangAuswahl)
                    .addComponent(txtAusgang, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btnStart)
                    .addComponent(btnEnde)
                    .addComponent(rbuPostgres)
                    .addComponent(rbuOracle))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void btnEndeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnEndeActionPerformed
        this.setVisible(false);
    }//GEN-LAST:event_btnEndeActionPerformed
    

    
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.ButtonGroup bgrDBType;
    private javax.swing.JButton btnAusgangAuswahl;
    private javax.swing.JButton btnEingangAuswahl;
    private javax.swing.JButton btnEnde;
    private javax.swing.JButton btnStart;
    private javax.swing.JLabel lblAusgang;
    private javax.swing.JLabel lblEingang;
    private javax.swing.JRadioButton rbuOracle;
    private javax.swing.JRadioButton rbuPostgres;
    private javax.swing.JTextField txtAusgang;
    private javax.swing.JTextField txtEingang;
    // End of variables declaration//GEN-END:variables
    
}
